package lab02.Test19;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/10/31.
 */
public class Test {
    public static void main(String[] args) {
        String s="HelloWord";
        System.out.println("请输入字符串：");
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuffer S=new StringBuffer(str);
        for (int i=0;i<=str.length();i++){
            char tmp=str.charAt(i);
            if (tmp>='A'&&tmp<='Z'){
                System.out.println(S.reverse().toString().toLowerCase());
            }
            else if (tmp>='a'&&tmp<='z'){
                System.out.println(S.reverse().toString().toLowerCase());
            }
        }
    }
}
